﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows;

namespace Faust.Andrew.MTG.Player.Converters
{
    public class TurnToBackgroundConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value is bool && ((bool)value))
            {
                return new SolidColorBrush(Color.FromArgb(0x7F, 0x22, 0x3C, 0xB3));
            }
            else
            {
                return new SolidColorBrush(Color.FromArgb(0x7F, 0x76, 0x76, 0x76));                
            }
                    
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return false;
        }

        #endregion
    }
}